package com.huawei.boss.lang;

import java.util.Iterator;
import java.util.List;

public final class Strings {
    public static String join(List args, String split) {
        StringBuilder sb = new StringBuilder();

        Iterator iter = args.iterator();
        if (iter.hasNext()) {
            sb.append(iter.next().toString());
            while (iter.hasNext()) {
                sb.append(split + iter.next().toString());
            }
        }
        return sb.toString();
    }
}
